package com.fushenlan.enums;

/**
 * 针对用户模块枚举
 */
public enum CommonCodeEnum implements ErrorCode {

    SUCCESS("0000", "操作成功"),
    FAILURE("0001", "操作失败"),
    NO_DATA("0003","数据为空"),

    /**
     * 居委会相关code
     */
    NEIGHBORHOOD_REPEATED("1000","居委会已存在,不能重复添加!"),
    USER_EXISTD("1001","该证件号码已被已存在"),
    NOT_SELECT("1002","未选中数据"),
    INCOMPLETE_INFO("1003","抱歉！ 所提交信息息不全，请检查重试");

    private String code;
    private String message;

    private CommonCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
